#include<reg51.h>
#include<intrins.h>
void delay(unsigned int i)
{
 unsigned int k;
 for(k=0;k<i;k++);
}

void main()
{ unsigned int j;
  j=0xfe;
  while(1)
  {
	  P1=j;
	     j=_crol_(j,1);
	delay(300000);
	}
}